package com.linxianqin.mapstruct.more2one;


/**
 * 功能描述：
 *
 * @author lxq
 * @version 1.00
 * @Date 2020/12/14
 */
public class more2oneTest {


//    /**
//     * 接收原有参数
//     * Result与Student实体、字符串合并
//     * */
//    @Test
//    public void AllStringAndReTest(){
//        Student student = new Student(123,"lxq","男");
//        Result result = new Result(1,"MapStruct","Java",3);
//        StuAndRe stuAndRe = more2oneConvert.INSTANCE.AllString2StuAndRe(result,student,"80","A1");
//        System.out.println(stuAndRe.toString());
//    }
//
//
//
//    /**
//     * Result\SC\Student三个实体合并
//     * **/
//    @Test
//    public void StuAndReTest2(){
//        Student student = new Student(123,"lxq","男");
//        Result result = new Result(1,"MapStruct","Java",3);
//        SC sc = new SC(9,"B4",null);
//        StuAndRe stuAndRe = more2oneConvert.INSTANCE.All2StuAndRe(result,student,sc);
//        System.out.println(stuAndRe.toString());
//    }
//
//    /**
//     * 实体集更新
//     * **/
//    @Test
//    public void update(){
//        Student student = new Student(100,"lxq","男");
//        Result result = new Result(1,"MapStruct","Java",3);
//        SC sc = new SC(9,"B4",null);
//        StuAndRe stuAndRe = more2oneConvert.INSTANCE.All2StuAndRe(result,student,sc);
//        System.out.println("更新前："+stuAndRe.toString());
//
//        sc = new SC(100,"666666","test123456");
//        more2oneConvert.INSTANCE.update(stuAndRe,sc);
//        System.out.println("更新后："+stuAndRe.toString());
//
//    }
//
//    /**
//     * Result实体与字符串
//     * **/
//    @Test
//    public void StuAndReTest3(){
//        Result result = new Result(1,"MapStruct","Java",3);
//        StuAndRe stuAndRe = more2oneConvert.INSTANCE.Result2StuAndRe(result,"123","sirwsl");
//        System.out.println(stuAndRe.toString());
//    }
}
